package com.exam.pojo;

/**
 * @author 郭荣锋
  *   题目类
 */
public class Question {
	
	private Integer id; //题目编号
	private String answer; //正确答案
	private String errAnswer; //错误答案
	private String topic;//题目
	private Integer status; //状态,是否删除
	private Subject subject; //学科对象
	private Type type; //题目类型对象
	
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	
	public String getAnswer() {
		return answer;
	}
	
	public void setAnswer(String answer) {
		this.answer = answer;
	}
	
	public String getErrAnswer() {
		return errAnswer;
	}
	
	public void setErrAnswer(String errAnswer) {
		this.errAnswer = errAnswer;
	}

	public String getTopic() {
		return topic;
	}
	
	public void setTopic(String topic) {
		this.topic = topic;
	}
	
	public Integer getStatus() {
		return status;
	}
	
	public void setStatus(Integer status) {
		this.status = status;
	}
	
	public Subject getSubject() {
		return subject;
	}
	
	public void setSubject(Subject subject) {
		this.subject = subject;
	}
	
	public Type getType() {
		return type;
	}
	
	public void setType(Type type) {
		this.type = type;
	}

	@Override
	public String toString() {
		return "Question{" + "id=" + id + ", answer='" + answer + '\'' + ", errAnswer='" + errAnswer + '\'' + ", topic='" + topic + '\'' + ", status=" + status + ", subject=" + subject + ", type=" + type + '}';
	}

}
